package com.mach.platform.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.common.base.Splitter;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Administrator
 * @Description:  系统图保存数据
 * @Package: com.mach.platform.domain
 * @time 2018/8/20 0020 11:53
 */
@Data
@Entity
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
@Table(name = "sys_img")
public class SysImg implements Serializable {

	private static final long serialVersionUID = 8223710447998889223L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "name")
	private String name;

	/**
	 * 图片
	 */
	@Column(name = "img_url")
	private String imgUrl;

	/**
     * 所属能源类型
	 */
	@Column(name = "energy")
	private String energy;

	@Column(name = "layout_data",columnDefinition = "TEXT")
	private String layoutData;

    /**
     * 所属空间: 工厂名或其他名
     */
	@Column(name = "space")
	private String space;

}
